<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jdbctest.jsp</title>
<%@ page errorPage="index.jsp" import="java.sql.*,  javax.sql.*,  java.io.*"%>
</head>
<body>
jdbctest.jsp 접속 테스트

<%
Class.forName("com.mysql.jdbc.Driver");

Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/windyzn", "windyzn" , "hoya9753");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select * from goods_category_big ");
String cateCode = "";
while (rset.next()) {
	cateCode = rset.getString("cate_big_code");
}
rset.close();
stmt.close();
conn.close();
%>

</body>
</html>
